﻿using System;
using System.Windows.Forms;
using CQRS.Example.SampleApplication.Views;
using CQRS.Infrastructure.Hermes.Infrastructure.ServiceLocator;

namespace CQRS.Example.SampleApplication
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            WindowFormInstaller.Install(IoC.Container);
            ApplicationStarter.Start();
            System.Windows.Forms.Application.EnableVisualStyles();
            System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false);
            var planesForm = IoC.Resolve<PlanesForm>();
            Application.Run(planesForm);
        }
    }
}
